Component({

  properties: {
    car: {
      type: Object
    }
  },

  methods: {
    async toDetails() {
      await wx.hideTabBar()
      this.triggerEvent('toDetails', this.properties.car)
    },
    async toOrder() {
      this.triggerEvent('toAddOrder', this.properties.car)
    }
  }
})